﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SinBiota.Model.Entities.TaxonomicGroup>>" %>
<%@ Import Namespace="Localization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Strings.TaxonomicGroup %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: Strings.TaxonomicGroup %></h2>
    <% Html.RenderPartial("SearchBox"); %>
    <table>
    <thead>
        <tr class="header">
            <th></th>
            <th>
            <%: Strings.Group %>
            </th>
            <th>
            <%: Strings.Level %>
            </th>
            <th>
                <%: Strings.Taxonomy %>
            </th>
        </tr>
    </thead>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
            <% Html.RenderPartial("EditDetailsRemoveExcelUserControl", item); %>
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.TaxonomicRank %>
            </td>
            <td>
                <%: String.Join(", ",item.Taxons.Select(x => x.Name)) %>
            </td>
        </tr>
        <% } %>
    </table>
    <p class="small button radius">
        <%: Html.ActionLink(Strings.CreateNew, "Create") %>
    </p>
</asp:Content>
